package com.yueya.auth.realm;

import com.yueya.auth.model.Account;

import java.io.Serializable;
import java.util.List;
import java.util.List;
import java.util.Set;

public class Principal implements Serializable {
    private static final long serialVersionUID = -980255633986282908L;
    private List<String> roles;
    private List<String> permissions;
    private Account account;
    public Principal(Account account, List<String> roles, List<String> permissions) {
        this.permissions = permissions;
        this.roles = roles;
        this.account = account;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public List<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }
}
